<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="favicon.ico">
<title>接口文档</title>

<link href="/Public/Assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!--[if lte IE 6]>
    <link rel="stylesheet" href="/Public/Assets/bootstrap/css/bootstrap-ie6.min.css"/>
<![endif]-->
<!--[if lte IE 7]>
    <link rel="stylesheet" href="/Public/Assets/bootstrap/css/ie.css"/>
<![endif]-->
<link href="/Public/Assets/bootstrap/css/non-responsive.css" rel="stylesheet">
<link href="/Public/Assets/css/docs.min.css" rel="stylesheet">
<link href="/Public/Assets/css/appdocs.css" rel="stylesheet">
<!--[if lt IE 9]>
  <script src="/Public/Assets/bootstrap/js/html5shiv.min.js"></script>
  <script src="/Public/Assets/bootstrap/js/respond.min.js"></script>
<![endif]-->

<style>


</style>
</head>
<body>


	<nav class="navbar navbar-default">
  	<div class="container">
    	<div class="navbar-header">
      		<a class="navbar-brand" href="<?php echo U('index/index');?>"><?php echo C('DocsBrand');?></a>
   	 	</div>
		
    	<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      		<ul class="nav navbar-nav">
      			<?php $topnavs = C('DocsTopnav'); ?>
      			<?php if(is_array($topnavs)): foreach($topnavs as $key=>$nav): if(is_array($nav)){ ?>
      			<li class="dropdown">
      				<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo ($nav[0]); ?> <span class="caret"></span></a>
      				<ul class="dropdown-menu">
      					<?php unset($nav[0]); ?>
      					<?php if(is_array($nav)): foreach($nav as $id=>$n): ?><li><a href="<?php echo U('Index/index','app='.$id);?>"><?php echo ($n); ?></a></li><?php endforeach; endif; ?>
		            </ul>
      			</li>
      			<?php }else{ ?>
        		<li <?php if($_GET['app'] == $key): ?>class="active"<?php endif; ?>><a href="<?php echo U('Index/index','app='.$key);?>"><?php echo ($nav); ?></a></li>
        		<?php } endforeach; endif; ?>
      		</ul>
    	</div>
  	</div>
</nav>
	
	<div class="container">
		<div class="row">
			<div class="col-xs-3">
				
				<div class="list-group">
	<?php if(is_array($leftmenu)): foreach($leftmenu as $key=>$vo): $iscur = 0;if($vo == $_GET['method']) $iscur = 1; ?>
	<a href="<?php echo u('Index/index','app='.$_GET['app'].'&method='.$vo);?>" class="list-group-item <?php if($iscur): ?>active<?php endif; ?>"><?php echo ($_GET['app']); ?>.<?php echo ($vo); ?></a><?php endforeach; endif; ?>
</div>
				
			</div>
			<div class="col-xs-9">
				<div class="panel panel-default">
  					<div class="panel-body">
  						<h2>接口：<?php echo ($_GET['app']); ?>.<?php echo ($_GET['method']); ?></h2>
  						<p>接口描述：<?php echo ((isset($doc["desc"]) && ($doc["desc"] !== ""))?($doc["desc"]):'空'); ?></p>
  						<p>接口地址：<a href="<?php echo ($doc["apiurl"]); ?>" target="_blank"><?php echo ($doc["apiurl"]); ?></a></p>
  						<h3>接口参数</h3>
  						<?php echo ($doc["param"]); ?>
  						
  						<h3>返回结果</h3>
  						<?php echo ($doc["return"]); ?>
  						
  						<div class="alert alert-info" role="alert"><b>温馨提示</b>：该文档由程序自动生成</div>
  					</div>
				</div>
			</div>
		</div>
	</div>


<script src="/Public/Assets/bootstrap/js/jquery.min.js"></script>
<script src="/Public/Assets/bootstrap/js/bootstrap.min.js"></script>

</body>
</html>